<template>
    <van-swipe class="my-swipe" :autoplay="3000"  indicator-color="white">
        <van-swipe-item v-for="item in list" :key="item.id">
                <img :src=item.imgUrl alt="">
        </van-swipe-item>
    </van-swipe>
</template>

<script>
export default {
    name:'Swiper',
    data(){
        return{
            list:[]
        }
    },
    mounted(){
        this.$.getHomeSwiper().then((res)=>{
            this.list=res.data.result
        })
    }
}
</script>

<style lang="less" scoped>
.my-swipe{
    height: 500px;
    width: 100%;
    z-index: 9;
    .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
  }

}
</style>